import request from "../service/request";
import { ElMessage } from 'element-plus'

export const getDeptTree = async (deptId) => {
    const data = await request.get(`/auth/dept/list/${deptId}`);
    return data.data
}

export const getAllDept = async (deptId) => {
    const data = await request.get(`/auth/dept/all`);
    return data.data
}

